package nz.ac.massey.cs.se400_2013.ass3.gui;

import java.awt.event.ActionEvent;

import nz.ac.massey.cs.se400_2013.ass3.Student;

public class AddStudentHandler extends Handler{

	public AddStudentHandler(SideTree sideTree) {
		super(sideTree);
	}

	public void actionPerformed(ActionEvent e) {
		System.out.println("Add new Student instance to selected Paper node.");
		Student newStudent = new Student();
		newStudent.setFirstName("New student");
		sideTree.addStudentForPaper(newStudent);
	}
}
